/**
 * Copyright ? 2006 DMX Technologies Corporation.  All rights reserved.
 * COPYRIGHT NOTICE:  The existence of a copyright notice on Software
 * will not be construed as an admission or presumption that public disclosure
 * of Software or any trade secrets associated with Software has occurred
 * or is permitted.
 ********************************************************************
 * PROPRIETARY NOTICE:  The source code contained in this listing is a
 * proprietary confidential trade secret of DMX Technologies Corporation.
 * Unauthorized copying, adaptation, distribution, use, or display is prohibited.
 */

package com.dmx.fw.service.interfaces;

import java.util.List;
import java.util.Map;

import com.dmx.fw.bean.PageInfo;
import com.dmx.fw.bean.QueryInfoBean;

/**
 * 通用查询组件Service接口
 * @author siyipin
 * 
 */
public interface QueryService extends Service{
	//查询结果按照list进行封装 List－》list－》string
	public static final String LIST_ENCAPSULATION = "LIST";
    
	//查询结果按照map进行封装 List－》map－》key－字段别名，value－字段字符串值
	public static final String MAP_ENCAPSULATION = "MAP";
	
	public PageInfo queryData(QueryInfoBean queryInfoBean,Map paramsMap,PageInfo pageInfo);
	
	/**
	 * 
	 * @param queryInfoBean
	 * @param paramsMap
	 * @param pageInfo
	 * @param resultType ,����"MAP"-封装成Map形式,返回的list每个元素是Map，"LIST" 封装成List形势，返回的list每个元素是list
	 * @return
	 */
	public PageInfo queryData(QueryInfoBean queryInfoBean,Map paramsMap,PageInfo pageInfo,String resultType);
	
	/**
	 * 返回list，每个元素也是list，子list的每个元素是string，对应查询的列
	 * @param sql
	 * @return
	 */
	public List queryBySql(String sql);

}